rivers = {
        'nile': 'egypt',
        'huanghe': 'china',
        'yamax': 'usa',
        }

for river,country  in rivers.items():
    print("The %s runs through %s." % (river, country))
for river in rivers.keys():
    print(river)
for country in rivers.values():
    print(country)
